package team.epos.utils.properties;

import team.epos.utils.annotation.PropertiesValue;

/**
 * Create by Vic Xu on 7/15/2018
 *
 * @author Vic Xu
 */
public class DbProperties {

    @PropertiesValue(value = "url")
    private String url;

    @PropertiesValue(value = "username")
    private String userName;

    @PropertiesValue(value = "password")
    private String passWord;

    @PropertiesValue(value = "driverClass")
    private String driverClass;

    @PropertiesValue(value = "initsize")
    private String initSize;

    @PropertiesValue(value = "minidle")
    private String minIdle;

    @PropertiesValue(value = "maxactive")
    private String maxActive;

    public DbProperties() {
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getDriverClass() {
        return driverClass;
    }

    public void setDriverClass(String driverClass) {
        this.driverClass = driverClass;
    }

    public String getInitSize() {
        return initSize;
    }

    public void setInitSize(String initSize) {
        this.initSize = initSize;
    }

    public String getMinIdle() {
        return minIdle;
    }

    public void setMinIdle(String minIdle) {
        this.minIdle = minIdle;
    }

    public String getMaxActive() {
        return maxActive;
    }

    public void setMaxActive(String maxActive) {
        this.maxActive = maxActive;
    }

    @Override
    public String toString() {
        return "DbProperties{" +
                "url='" + url + '\'' +
                ", userName='" + userName + '\'' +
                ", passWord='" + passWord + '\'' +
                ", driverClass='" + driverClass + '\'' +
                ", initSize='" + initSize + '\'' +
                ", minIdle='" + minIdle + '\'' +
                ", maxActive='" + maxActive + '\'' +
                '}';
    }
}
